<!--
 * @Author: daidai
 * @Date: 2022-03-01 09:43:37
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-09-09 11:40:22
 * @FilePath: \web-pc\src\pages\big-screen\view\indexs\left-bottom.vue
-->
<template>
  <div v-if="pageflag" class="left_boottom_wrap beautify-scroll-def" :class="{ 'overflow-y-auto': !sbtxSwiperFlag }">
    <component :is="components" :data="list" :class-option="defaultOption">
      <ul class="left_boottom">
        <li class="left_boottom_item" v-for="(item, i) in list" :key="i">
          <span class="orderNum doudong">{{ i + 1 }}</span>
          <div class="inner_right" style="font-size: 12px">
            <div class="dibu"></div>
            <div class="flex">
              <div class="info">
                <span class="labels">舆情ID：</span>
                <span class="   wangguan">
                  {{ item.舆情ID }}</span>
              </div>
              <div class="info">
                <span class="labels">话题：</span>
                <span class="" style="font-size: 12px">
                  {{ item.话题 }}</span>
              </div>
              <div class="info">
                <span class="labels">发布渠道：</span>
                <span class="">
                  {{ item.发布渠道 }}</span>
              </div>
            </div>
            <div class="flex">
              <div class="info">
                <span class="labels">级别：</span>
                <span class="contents " style="font-size: 12px">
                  {{ item.级别 }}</span>
              </div>
              <div class="info">
                <span class="labels">发布时间：</span>
                <span class="   " style="font-size: 12px">
                  {{ item.发布时间 }}</span>
              </div>
              <div class="info">
                <span class="labels">处理状态：</span>
                <span class="contents " style="font-size: 12px">
                  {{ item.处理状态 }}</span>
              </div>
            </div>
            <div class="flex">
              <div class="info">
                <span class="labels">处理部门：</span>
                <span class="contents " style="font-size: 12px">
                  {{ item.处理部门 }}</span>
              </div>
              <div class="info">
                <span class="labels">处理进展：</span>
                <span class="contents " style="font-size: 12px">
                  {{ item.处理进展 }}</span>
              </div>
            </div>
            <div class="flex">
              <div class="info">
                <span class="labels">处理负责人：</span>
                <span class="contents zhuyao doudong wangguan">
                  {{ item.处理负责人 }}</span>
              </div>
              <div class="info">
                <span class="labels">处理负责人联系方式：</span>
                <span class="contents " style="font-size: 12px">
                  {{ item.联系方式 }}</span>
              </div>
            </div>

          </div>
        </li>
      </ul>
    </component>
  </div>

  <Reacquire v-else @onclick="getData" style="line-height: 200px" />
</template>

<script>
import { currentGET } from "api";
import vueSeamlessScroll from "vue-seamless-scroll"; // vue2引入方式
import Kong from "../../components/kong.vue";
export default {
  components: { vueSeamlessScroll, Kong },
  data() {
    return {
      list: [],
      pageflag: true,
      components: vueSeamlessScroll,
      defaultOption: {
        ...this.$store.state.setting.defaultOption,
        singleHeight: 240,
        limitMoveNum: 5,
        step: 0,
      },
    };
  },
  computed: {
    sbtxSwiperFlag() {
      let sbtxSwiper = this.$store.state.setting.sbtxSwiper;
      if (sbtxSwiper) {
        this.components = vueSeamlessScroll;
      } else {
        this.components = Kong;
      }
      return sbtxSwiper;
    },
  },
  created() {

  },

  mounted() {
    this.getData();
  },
  methods: {
    addressHandle(item) {
      let name = item.provinceName;
      if (item.cityName) {
        name += "/" + item.cityName;
        if (item.countyName) {
          name += "/" + item.countyName;
        }
      }
      return name;
    },
    getData() {
      this.pageflag = true;
      // this.pageflag =false
      currentGET("big3", { limitNum: 20 }).then((res) => {
        console.log("设备提醒", res);
        if (res.success) {
          this.countUserNumData = res.data;
          this.list = [
            {
              "舆情ID": "YQ2023002",
              "话题": "占道经营",
              "发布渠道": "微信",
              "级别": "中",
              "发布时间": "2024-10-02 15:45",
              "处理状态": "处理中",
              "处理部门": "市容管理科",
              "处理进展": "现场调查中，已联系相关人员",
              "处理负责人": "李丽",
              "联系方式": "13900139000",
              "响应时间": "12.0",
              "预计完成时间": "2024-10-03 17:00",
              "反馈情况": "待反馈"
            },
            {
              "舆情ID": "YQ2023003",
              "话题": "环境污染",
              "发布渠道": "新闻网站",
              "级别": "中",
              "发布时间": "2024-10-03 09:00",
              "处理状态": "已处理",
              "处理部门": "环境保护科",
              "处理进展": "整改完成，已反馈公众",
              "处理负责人": "王磊",
              "联系方式": "13700137000",
              "响应时间": "8.0",
              "预计完成时间": "2024-10-03 17:30",
              "反馈情况": "公众反馈满意"
            },
            {
              "舆情ID": "YQ2023004",
              "话题": "垃圾堆放与清运",
              "发布渠道": "论坛",
              "级别": "低",
              "发布时间": "2024-10-04 14:30",
              "处理状态": "已处理",
              "处理部门": "市容管理科",
              "处理进展": "垃圾清理完成，已关闭事件",
              "处理负责人": "赵强",
              "联系方式": "13600136000",
              "响应时间": "10.0",
              "预计完成时间": "2024-10-04 17:00",
              "反馈情况": "居民反映清理完成"
            },
            {
              "舆情ID": "YQ2023005",
              "话题": "噪声污染",
              "发布渠道": "微博",
              "级别": "高",
              "发布时间": "2024-10-05 08:15",
              "处理状态": "处理中",
              "处理部门": "环境保护科",
              "处理进展": "督促整改，限期跟进",
              "处理负责人": "陈刚",
              "联系方式": "13500135000",
              "响应时间": "24.0",
              "预计完成时间": "2024-10-06 12:00",
              "反馈情况": "待监督反馈"
            },
            {
              "舆情ID": "YQ2023006",
              "话题": "无证广告牌",
              "发布渠道": "新闻APP",
              "级别": "低",
              "发布时间": "2024-10-06 18:20",
              "处理状态": "待处理",
              "处理部门": "广告管理科",
              "处理进展": "等待审批处理",
              "处理负责人": "刘杰",
              "联系方式": "13400134000",
              "响应时间": "",
              "预计完成时间": "",
              "反馈情况": "无"
            },
            {
              "舆情ID": "YQ2023007",
              "话题": "市容破坏",
              "发布渠道": "微信",
              "级别": "中",
              "发布时间": "2024-10-07 11:00",
              "处理状态": "已处理",
              "处理部门": "市容管理科",
              "处理进展": "破坏设施已修复，事件结案",
              "处理负责人": "张涛",
              "联系方式": "13300133000",
              "响应时间": "5.0",
              "预计完成时间": "2024-10-07 14:00",
              "反馈情况": "事件完成，反馈良好"
            },
            {
              "舆情ID": "YQ2023008",
              "话题": "交通违法",
              "发布渠道": "微博",
              "级别": "高",
              "发布时间": "2024-10-08 16:50",
              "处理状态": "处理中",
              "处理部门": "交通管理科",
              "处理进展": "车辆违停告知已发出，跟进处理",
              "处理负责人": "陈伟",
              "联系方式": "13200132000",
              "响应时间": "18.0",
              "预计完成时间": "2024-10-09 16:00",
              "反馈情况": "反馈处理中"
            },
            {
              "舆情ID": "YQ2023009",
              "话题": "违法占地",
              "发布渠道": "论坛",
              "级别": "中",
              "发布时间": "2024-10-09 13:20",
              "处理状态": "已处理",
              "处理部门": "市容管理科",
              "处理进展": "占地已清理，恢复正常",
              "处理负责人": "李华",
              "联系方式": "13100131000",
              "响应时间": "6.0",
              "预计完成时间": "2024-10-09 12:00",
              "反馈情况": "反馈已确认"
            },
            {
              "舆情ID": "YQ2023010",
              "话题": "防疫管理",
              "发布渠道": "新闻APP",
              "级别": "低",
              "发布时间": "2024-10-10 07:45",
              "处理状态": "待处理",
              "处理部门": "防疫管理科",
              "处理进展": "未处理，需进一步监督",
              "处理负责人": "赵敏",
              "联系方式": "13000130000",
              "响应时间": "",
              "预计完成时间": "",
              "反馈情况": "待反馈"
            }
          ];
          let timer = setTimeout(() => {
            clearTimeout(timer);
            this.defaultOption.step =
              this.$store.state.setting.defaultOption.step;
          }, this.$store.state.setting.defaultOption.waitTime);
        } else {
          this.pageflag = false;
          this.$Message({
            text: res.msg,
            type: "warning",
          });
        }
      });
    },
  },
};
</script>
<style lang='scss' scoped>
.left_boottom_wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.doudong {
  //  vertical-align:middle;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.left_boottom {
  width: 100%;
  height: 100%;

  .left_boottom_item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 14px;
    margin: 10px 0;

    .orderNum {
      margin: 0 16px 0 -20px;
    }

    .info {
      margin-right: 10px;
      display: flex;
      align-items: center;
      color: #fff;

      .labels {
        flex-shrink: 0;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
      }

      .zhuyao {
        color: $primary-color;
        font-size: 15px;
      }

      .ciyao {
        color: rgba(255, 255, 255, 0.8);
      }

      .warning {
        color: #e6a23c;
        font-size: 15px;
      }
    }

    .inner_right {
      position: relative;
      height: 100%;
      width: 380px;
      flex-shrink: 0;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;

      .dibu {
        position: absolute;
        height: 2px;
        width: 104%;
        background-image: url("../../assets/img/zuo_xuxian.png");
        bottom: -10px;
        left: -2%;
        background-size: cover;
      }

      .addresswrap {
        width: 100%;
        display: flex;
        margin-top: 8px;
      }
    }

    .wangguan {
      color: #1890ff;
      font-weight: 900;
      font-size: 15px;
      width: 80px;
      flex-shrink: 0;
    }


    .time {
      font-size: 12px;
      // color: rgba(211, 210, 210,.8);
      color: #fff;
    }

    .address {
      font-size: 12px;
      cursor: pointer;
      // @include text-overflow(1);
    }

    .types {
      width: 30px;
      flex-shrink: 0;
    }

    .typeRed {
      color: #fc1a1a;
    }

    .typeGreen {
      color: #29fc29;
    }
  }
}
</style>